package com.itjh.controller;

import com.itjh.dto.EmpLoginDto;
import com.itjh.pojo.Emp;
import com.itjh.pojo.MyResponseResult;
import com.itjh.service.EmpService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @Create 2025/1/20 10:20
 */

@RestController
public class LoginController {
    @Autowired
    private EmpService empService;

    @PostMapping("login")
    public MyResponseResult<String> login(@RequestBody EmpLoginDto empLoginDto){
        return empService.login(empLoginDto);
    }
}
